package com.ldy.gkrpc.example;

import com.ldy.gkrpc.client.RpcClient;

/**
 * @Description
 * @Author
 * @Date 2020/4/16 20:06
 **/
public class Client {
    public static void main(String[] args) {
        final RpcClient rpcClient = new RpcClient();
        CalcService proxy = rpcClient.getProxy(CalcService.class);

        int add = proxy.add(10, 10);
        int minus = proxy.minus(10, 5);
        System.out.println(add);
        System.out.println(minus);
    }
}
